package basic_practice_1002;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner scanner=new Scanner(System.in);

		while(scanner.hasNext()) {
			int num=scanner.nextInt();

			System.out.print(num%4==2?"YES\n":"NO\n");
		}
		scanner.close();
	}

}
